package nz.co.doherty.gwtpbreadcrumbs.shared.rpc.customer;

import nz.co.doherty.gwtpbreadcrumbs.shared.entity.Customer;

import com.googlecode.objectify.Key;
import com.philbeaudoin.gwtp.dispatch.shared.Action;
import com.philbeaudoin.gwtp.dispatch.shared.ActionImpl;


public class CustomerRetrieveAction implements Action<CustomerRetrieveResult> {
	
	private Key<Customer> customer;
	
	private CustomerRetrieveAction() {}
	
	public CustomerRetrieveAction(Key<Customer> customer) {
		this.customer = customer;
	}

	public Key<Customer> getCustomerKey() {
		return this.customer;
	}

	@Override
	public String getServiceName() {
		return ActionImpl.DEFAULT_SERVICE_NAME + "CustomerRetrieve";
	}

	@Override
	public boolean isSecured() {
		// TODO Auto-generated method stub
		return false;
	}
}
